<%-- 
    Document   : customerprofile
    Created on : Mar 9, 2012, 10:53:59 PM
    Author     : Alex
--%>

<%@page contentType="text/html" pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <title>FooBar BookStore</title>
           <%
            response.setHeader("Pragma","no-cache");
            response.setHeader("Cache-Control","no-store");
            response.setHeader("Expires","0");
            response.setDateHeader("Expires",-1);
        %>
        
          <%
        if(session.getAttribute("user")== null){
            response.sendRedirect("index.jsp");
            }

               else{
        %>
        
    </head>
    <body>
        <h1>Customer View Profile Page</h1>  <a href="UserLogoutServlet"> Logout </a>
        
        <% out.print("Firstname: " +session.getAttribute("firstname")+ "");%> </br>
        <% out.print("Middlename: " +session.getAttribute("middlename")+ "");%> </br>
        <% out.print("Lastname: " +session.getAttribute("lastname")+ "");%></br>
        <% out.print("Address: " +session.getAttribute("address")+ "");%></br>
        <% out.print("City: " +session.getAttribute("city")+ "");%></br>
        <% out.print("Postal: " +session.getAttribute("postal")+ "");%></br>
        <% out.print("Email: " +session.getAttribute("email")+ "");%></br>
        <% out.print("Credit Card Name: " +session.getAttribute("creditname")+ "");%></br>
        <% out.print("Credit Card Number: " +session.getAttribute("creditnumber")+ "");%></br>
        <% out.print("Expiration Date: " +session.getAttribute("expdate")+ "");%></br>
        <% out.print("Credit Card Type: " +session.getAttribute("credittype")+ "");%></br>
        
    </body>
    <%
    }
    %>
</html>
